<?php

// verifies the login data on every page in the member's section (this code has to be included on the top of every access-restricted page)

$hash = md5($check_email.$hash_password);

if($hash != $check_hash) {

  session_unset();
  session_destroy();
  
  setcookie(session_name(), "", time()-10800, "/", "", 0);
  setcookie("check_email", "", time()-10800, "/", "", 0);
  setcookie("check_hash", "", time()-10800, "/", "", 0);
  setcookie("check_user", "", time()-10800, "/", "", 0);
  header("location:bloglogin.php?date=".$date);
  exit;
}
?>